package IntroScene;

import Picture.GameImage;

import java.awt.image.BufferedImage;
import java.util.ArrayList;

public class Go {
    BufferedImage img;
    ArrayList<BufferedImage> arrayList = new ArrayList<>();
    int index = 0;
    public Go() {
        img = GameImage.get("/Picture/介绍/1 (1).png");
        for (int i = 1; i < 8; i++) {
            arrayList.add(GameImage.get("/Picture/介绍/1 ("+i+").png"));
        }
    }
    public void changeImage(){
        if(index==7){
            index=0;
        }
        img = arrayList.get(index);
        index++;
    }
}
